import request from '@/request/request.js'

//根据老师的id查看对应的申请修改题目信息
export function getUpdateQuestionById(data) {
    return request({
        url: '/groupOne/question/getUpdateQuestionById',
        method: 'post',
        data
    })
}
//管理员通过提交的申请
export function passApplication(id) {
    return request({
        url: '/groupOne/question/passApplication/'+id,
        method: 'post'
    })
}
//管理员驳回提交的修改申请
export function rejectApplication(id,cause) {
    return request({
        url: '/groupOne/question/rejectApplication/'+id+'/'+cause,
        method: 'post'
    })
}
//管理员查看所有的修改申请记录
export function getAllUpdateQuestion(data) {
    return request({
        url: '/groupOne/question/getAllUpdateQuestion',
        method: 'post',
        data
    })
}
//删除申请修改记录信息
export function deleteUpdateQuestion(data) {
    return request({
        url: '/groupOne/question/deleteUpdateQuestion',
        method: 'post',
        data
    })
}